<?php
/**
 * @Name: StaffModel.php
 * @Author: yashuai
 */

namespace App\Http\Model\Org;


class StaffModel extends BaseModel
{

    protected $table = 'staff';

    public function department()
    {
        return $this->hasOne(DepartmentModel::class, 'DepartmentID', 'DepartmentID')
            ->select(['DepartmentID', 'Name']);
    }

}
